package com.ziiwee.reduce.describe.models;

import com.ziiwee.reduce.describe.FieldRule;

import java.util.Map;

/**
 * @author ziiwee
 * @data 2020/8/12
 */
public class FieldRuleModel implements FieldRule {

    private String name;

    private Map<String, Object> ruleValues;

    private String description;

    public FieldRuleModel(String name, Map<String, Object> ruleValues, String description) {
        this.name = name;
        this.ruleValues = ruleValues;
        this.description = description;
    }

    @Override
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public Map<String, Object> getRuleValues() {
        return ruleValues;
    }

    public void setRuleValues(Map<String, Object> ruleValues) {
        this.ruleValues = ruleValues;
    }

    @Override
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
